package com.example.prototype;

import com.example.prototype.shape.Shape;
import org.junit.jupiter.api.Test;

/**
 * @Description TODO
 * @Date 2021/10/28 17:00
 * @Author ZhangJi
 * @Version 1.0
 */
public class PrototypePatternTest {

  @Test
  public void prototypePatternDemo(){
    ShapeCache.loadCache();
    Shape shape = ShapeCache.getShape("1");
    System.out.println(shape.getType());
    shape.draw();
  }

}
